import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const store = new Vuex.Store({
    state : {
        adduserShow : false,
        alterUser : false,
        userShow : false
    },
    mutations : {
        openUser(state){
            state.adduserShow = true
        },
        closeUser(state){
            state.adduserShow = false
        },
        openAlterUser(state){
            state.alterUser = true
        },
        closeAlterUser(state){
            state.alterUser = false
        },
        openUserShow(state){
            state.userShow = true
        },
        closeUserShow(state){
            state.userShow = false
        }
    }
})

export default store